<?php

declare(strict_types=1);

namespace App\Model;



/**
 * @property int $id ID
 * @property string $msg_id 消息ID
 * @property string $session_id 会话ID
 * @property int $from_userid 发送者ID
 * @property int $to_userid 接收者ID
 * @property int $msg_type 消息类型
 * @property string $msg_data 消息内容
 * @property int $has_read 是否阅读
 * @property int $read_time 阅读时间
 * @property int $send_time 发送时间
 */
class ImMessage extends Model
{
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'im_message';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'msg_id', 'session_id', 'from_userid', 'to_userid', 'msg_type', 'msg_data', 'has_read', 'read_time', 'send_time'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'from_userid' => 'integer', 'to_userid' => 'integer', 'msg_type' => 'integer', 'has_read' => 'integer', 'read_time' => 'integer', 'send_time' => 'integer'];
}
